package com.example.springcloudwinter.util;

import java.util.regex.Pattern;

public class VerifyUtil {
	
	private static final String REGEX_MOBILE =
			"^((13[0-9])|(14(0|[5-7]|9))|(15([0-3]|[5-9]))|(16(2|[5-7]))|(17[0-8])|(18[0-9])|(19([0-3]|[5-9])))\\d{8}$";
	public static boolean verifyPhoneNumber (String phoneNumber) {
		return Pattern.matches(REGEX_MOBILE, phoneNumber);
	}
	
}